﻿//08.Write a program that reads an integer number n from the console 
//and prints all the numbers in the interval [1..n], each on a single line.

using System;

namespace PrintNumbersInInterval
{
    class PrintNumbers
    {
        static void Main()
        {
            Console.Write("Please enter a number: ");
            int n = int.Parse(Console.ReadLine());

            int interval = 0;

            if (n == 0)
            {
                Console.WriteLine(interval);
            }
            else
            {
                for (interval = 1; interval <= n; interval++)
                {
                    Console.WriteLine(interval);
                }
            }
        }
    }
}
